package linkedList;

/**
 * 自定义链表结构
 */
public class ListNode {
    Integer val;
    ListNode next;

    public ListNode() {}

    public ListNode(Integer val) {
        this.val = val;
    }

    @Override
    public String toString() {
        return val + " ";
    }
}
